// created by noellynch
// May 8, 2009

package com.sceneworker.app.globals.cacheobjects;

import com.jmex.terrain.TerrainPage;
import com.jmex.terrain.util.AbstractHeightMap;

public class TerrainAndHeightMapCacheObject implements ISceneWorkerCacheObject {
	
	private		TerrainPage			mcl_page;
	private		AbstractHeightMap	mcl_hmap;
	
	public	TerrainAndHeightMapCacheObject(TerrainPage cl_page, AbstractHeightMap cl_hmap) {
		mcl_page = cl_page;
		mcl_hmap = cl_hmap;
		
	}
	
	public String getUniqueID() {
		return "obj" + mcl_page.hashCode();
	}

	public Object getValue() {
		return this;
	}
	
	public	AbstractHeightMap		getHeightMap() {
		return mcl_hmap;
	}
	
	public	TerrainPage				getTerrain() {
		return mcl_page;
	}

}
